package com.haoshuang.zhouzhoubang.ui.page.welfare.tool

import com.haoshuang.zhouzhoubang.databinding.ItemToolUseRecordBinding
import com.haoshuang.zhouzhoubang.model.bean.ToolUseRecordBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 
 */
class ToolUseRecordAdapter(data: MutableList<ToolUseRecordBean>) : BaseBindingQuickAdapter<ToolUseRecordBean, ItemToolUseRecordBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: ToolUseRecordBean?) {
        holder.getViewBinding<ItemToolUseRecordBinding>().apply {
            tvName.text = item?.title
            tvTime.text = item?.add_time
            tvValue.text = "-${item?.number}"
        }
    }

}